package com.josework.springhelloworld.model.impl;

import com.josework.springhelloworld.model.Knight;
import com.josework.springhelloworld.service.Quest;

import java.util.ArrayList;

public class BraveKnight implements Knight {

    private Quest quest;

    public BraveKnight(Quest quest){
        this.quest = quest;
    }

    public void embarkOnQuest(){
        quest.embark();
    }

    public static void main(String[] args) {
        ArrayList<String> arrayList = new ArrayList<>();
        arrayList.add("success");
        System.out.println(arrayList.size());

    }


}
